<template>
    <a class="dashboard-stat dashboard-stat-v2 yellow" href="#">
        <div class="visual">
            <i class="fa fa-money"></i>
        </div>
        <div class="details">
            <div class="number">
                <span>{{totalPrice.CountToday}} 元</span>
            </div>
            <div class="desc"> 
                总支付金额: {{ totalPrice.CountAll }} 元
            </div>
        </div>
    </a>
</template>

<script>
export default {
    data() {
        return {
            totalPrice: {
                CountToday: 0,
                CountAll: 0
            }
        }
    },
    mounted() {
        this.$DashboardService.QueryTotalPrice()
            .then(ret => {
                this.totalPrice = ret;
            })
    }
}
</script>

<style>

</style>
